package com.leoman.spinningmachine.util;

import com.leoman.helper.util.AppManager;
import com.leoman.spinningmachine.constant.Constant;

/**
 * Created by Administrator on 2017/10/13.
 * 退出清空缓存
 */

public class QuitUtil {
    public static void quit(boolean isFinish) {
        SharedPreferencesUtils.getInstance().remove(Constant.ISLOGIN);
        SharedPreferencesUtils.getInstance().remove(Constant.PHONE);
        SharedPreferencesUtils.getInstance().remove(Constant.HEADPATH);
        if (isFinish)
            AppManager.getInstance().finishAllActivity();
    }
}
